StupidBeauty
Read times:1008Posted at:Thu May 10 22:36:07 2012
- no title specified

Reading ras files from sequential devices not supported

这个警告可能是由KDE的代码引起的。可能的原因:从TCP数据流中读取QImage时,QT会猜测该QImage实例所使用的图形格式,而具体对图形格式进行测试的代码是位于KDE中。KDE中的ras图形处理器在接受猜测(bool RASHandler::canRead(QIODevice *device))时,如果发现所传入的设备是序列化的,则会输出这样一个警告。不影响使用,然而很烦人。

解决办法就是使用QImageReader来从TCP数据流中读取QImage,并且指明图片的格式。当前,在数据流的那一端,也要用QImageWriter来写入数据,并且指明相同的图片格式。这样就不会去猜测图片的格式,不会有这个警告。

参考:

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4